home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
oper_sys
/
presto
/
prest1_0.lha
/
Tests
/
burner
/
README
< prev
Wrap
Text File
|
1991-12-11
|
761b
|
27 lines
Burner is a silly little program. It simply forks off
some number of threads, each of which spins in a tight
loop for some number of iterations, prints a number
which identifies the thread, and exits. Here are the
options:
-a enable processor affinity (on a Sequent Symmetry only)
-q<num> preemption quantum in milliseconds
default: no time slicing
-s<num> how many loop iterations for each thread
default: 500,000
-t<num> how many "burner" threads
default: 5
-n<num> how many processors to use
default: 1
Burner serves well as a simple-minded test/demo for
time-sliced preemption. If you run it with more threads
than processors and a nonzero quantum, and all the threads
exit "at the same time" then preemption is working.